import instance from "@/util/axios.js"

// 获取宿舍楼
export const getDormitory = async ({id,classId}) =>
    await instance.get("/api/currency/getDormitory", {
        params: {
            id,
            classId
        }
    })


// 获取楼层
export const getFloor = async (data) => 
await instance.get(`/api/currency/floor`, {
    params: {
        ...data
    }
})

// 获取房间号
export const getRoomNo = async ({
        dormitoryId,
        floorId,
        roomNoId,
        classId
    }) =>
    await instance.get("/api/currency/roomNo", {
        params: {
            dormitoryId,
            floorId,
            roomNoId,
            classId
        }
    })
// 获取床号
export const getBednumber = async ({roomNoId,bednumberId}) =>
    await instance.get(`/api/currency/bednumber`,{
        params:{
            roomNoId,
            bednumberId
        }
    })